package nige.capture;

import java.awt.Graphics;
import java.awt.Image;
import java.io.File;

import javax.imageio.ImageIO;
import javax.swing.JPanel;

public class JPaneImage extends JPanel {
	
	public static String imageScan = 
		"C:/Documents and Settings/ngenevaux/Mes documents/Mes images/draw3.jpg";
	//	"C:/Documents and Settings/ngenevaux/Mes documents/Mes images/perenoel.jpg";
	//	"C:/Documents and Settings/ngenevaux/Mes documents/Mes images/logantuning.jpeg";
	
	public void update(Graphics g) {
		super.update(g);
	}
	
	public void paint(Graphics g) {
		super.paint(g);
		try {
			Image img = ImageIO.read(new File(imageScan));
			g.drawImage(img,0,0,img.getWidth(null),img.getHeight(null),null);
		}
		catch(Exception e) {
			System.out.println(e);
		}
	}
}
